import org.bouncycastle.tsp.TSPUtil;

import java.util.HashMap;
import java.util.Map;
import java.util.Random;

/**
 * Description: 随机数的生成
 *
 * @Autor: Rolin
 * datetime: 06-08-21:41
 */
public class ramdon_test {
    public static void main(String[] args) {
        Map<String,Object> message_code= new HashMap<>();
        Random random = new Random();
        String code  = "" ;
        for (int i = 0; i< 4 ; i++){
            Integer num = random.nextInt(10);
            code += String.valueOf(num);
            System.out.println(code);
        }
        System.out.println(code);
    }
}
